package com.cykj.controller;

import com.cykj.service.MenuService;
import com.cykj.util.ResponseDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping("/menu")
public class MenuController {
    @Autowired
    private MenuService menuService;
    @RequestMapping("/getAllMenu")
    public ResponseDto getAllMenu(int roleId){
        return  menuService.getAllMenu(roleId);
    }
}
